<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/index.css" rel="stylesheet" type="text/css" />
<title>进销存--系统登录页</title>
<script type="text/javascript" src="<c:url value='/js/jquery-1.8.3.js'/>"></script>
<script type="text/javascript">
function submit1(){
	$("#form1").submit();
}
function change(){
	$("#img").attr("src","<c:url value='/createVerifyCode.action'/>?"+new Date());
}
</script>
</head>
<body>
<center>
<form action="<c:url value='/userLogin.action'/>" method="POST" id="form1">
  <div class="login">
    <div class="input">
      <div class="user">
        <label>*用户名:</label>
        <input type="text" name="userName" class="username" required/>
        
      </div>
      <div class="pass">
        <label>*密&nbsp;&nbsp;码:</label>
        <input type="password" name="pwd" class="password" required/>
      </div>
      <div class="verify">

        <label>*验证码:</label>
        <input type="text" name="verifyCode" class="verifyCode" required/>
      </div>  
      <div style="float:left">
      	<img src="<c:url value='/createVerifyCode.action'/>" id="img" onclick="change()"/>
      	<span style="color:green">点击图片换一张</span>
      </div>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <span style="color:red" >${loginError }${verifyError }</span>
      <div class="remember"> 
        <input type="checkbox" name="remember" />Remember Me
      </div>
    </div>
    <div class="LR">
      <div class="L"><input type="image"  src="images/Login.gif" onclick="submit1()"></div>
      <div class="R"><input type="image"  src="images/Sign.gif" onclick="regist()"/></div>
    </div>
  </div>
</form>
</center>


</body>
</html>